#!/bin/bash
#in my computer first run the shell cmd
#source ../../petalinux/settings.sh
# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zynq_ebaz4205_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j8
mv u-boot u-boot.elf
mv arch/arm/dts/zynq-ebaz4205.dtb devicetree.dtb
echo the_ROM_image: \
{ \
   [bootloader]./fsbl.elf \
   ./top_pl.bit \
   ./u-boot.elf \
} > boot.bif
bootgen -image boot.bif -o i BOOT.bin -w